﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
	Register
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
	<% using (Html.BeginForm())
	{ %>
	<div class="pagetitle">
		<h1>
			Register a new account
			</h1>
	</div>
	<div class="pagecontent">
		<p>
			Use the form below to create a new account.
		</p>
		<p>
			Passwords are required to be a minimum of
			<%=Html.Encode(ViewData["PasswordLength"])%>
			characters in length.
		</p>
		<%= Html.ValidationSummary("Account creation was unsuccessful. Please correct the errors and try again.") %>
		<div>
			<fieldset>
				<legend>Account Information</legend>
				<p>
					<label for="username">
						Username:</label>
					<%= Html.TextBox("username") %>
					<%= Html.ValidationMessage("username") %>
				</p>
				<p>
					<label for="email">
						Email:</label>
					<%= Html.TextBox("email") %>
					<%= Html.ValidationMessage("email") %>
				</p>
				<p>
					<label for="password">
						Password:</label>
					<%= Html.Password("password") %>
					<%= Html.ValidationMessage("password") %>
				</p>
				<p>
					<label for="confirmPassword">
						Confirm password:</label>
					<%= Html.Password("confirmPassword") %>
					<%= Html.ValidationMessage("confirmPassword") %>
				</p>
			</fieldset>
		</div>
	</div>
	<div class="pageactions">
		<p>
			<input type="submit" value="Register" />
		</p>
	</div>
	<% } %>
</asp:Content>
